import unittest
import time

from selenium import webdriver


class MyTestCase(unittest.TestCase):
    driver = webdriver.Chrome()
    @classmethod
    def setUpClass(cls):
        cls.driver.get('http://www.baidu.com')

    def setUp(self):
        self.driver.get('http://wwww.so.com')
    def tearDown(self):
        self.driver.get('http://www.163.com')
        time.sleep(3)
    def test_something(self):
        print('123')

    @classmethod
    def tearDownClass(cls):
        cls.driver.quit()


if __name__ == '__main__':
    unittest.main()
